<?php use_stylesheets_for_form($filtro) ?>
<?php use_javascripts_for_form($filtro) ?>

<div id="content-outer">
<!-- start content -->
    <div id="content">
        <div id="page-heading"></div>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tbody>
            <tr>
                <td id="jwj_content-izq"></td>
                <td>
                    <div id="jwj_content-inner">
                        <div id="sf_admin_container">
                            <h1>Listando Catalogo de Servicios</h1>
                    <div id="sf_admin_header"></div>
                    <div id="sf_admin_bar"></div>
                    <div id="sf_admin_content">
    
                    <div class="sf_admin_list">
                        <table cellspacing="0">
                            <thead>
                              <tr>
                                <th class="sf_admin_text sf_admin_list_th_categoria">Categoria</th>
                                <th class="sf_admin_text sf_admin_list_th_nombre">Nombre </th>
                                <th class="sf_admin_text sf_admin_list_th_mancheta">Mancheta</th>
                                <th id="sf_admin_list_th_actions">Acciones</th>
                              </tr>
                            </thead>
                            <tfoot>
                                <tr>
                                    <th colspan="8">
                                      <div id="paginacion">
                                          <span id="jwj_toolbar" class="sf_admin_pagination">
                                            <?php if ($pager->haveToPaginate()): ?>
                                                <?php echo link_to('&laquo;', 'productoNew/indexServicio?page='.$pager->getFirstPage(), array('class'  => 'jwj_admin_pagination_on ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only')) ?>
                                                <?php echo link_to('&lt;', 'productoNew/indexServicio?page='.$pager->getPreviousPage(), array('class'  => 'jwj_admin_pagination_on ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only')) ?>
                                                <?php $links = $pager->getLinks();
                                                    foreach ($links as $page): ?>
                                                    <?php echo ($page == $pager->getPage()) ? "<font class=\"ui-button ui-widget ui-state-default ui-corner-all ui-button-disabled ui-state-disabled ui-button-text-only\">".$page."</font>" : link_to($page, 'productoNew/indexServicio?page='.$page, array('class'  => 'paginacionBoton')) ?>
                                                    <?php if ($page != $pager->getCurrentMaxLink()): ?>     <?php endif ?>
                                                    <?php endforeach ?>
                                                <?php echo link_to('&gt;', 'productoNew/indexServicio?page='.$pager->getNextPage(), array('class'  => 'jwj_admin_pagination_on ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only')) ?>
                                                <?php echo link_to('&raquo;', 'productoNew/indexServicio?page='.$pager->getLastPage(), array('class'  => 'jwj_admin_pagination_on ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only')) ?>
                                             <?php endif ?>
                                        <div class="jwj_pagination_number">
                                            <?php echo "<font class=\"paginacionStatus\" > Total Registros ". $pager->getNbResults()." <b>( ".$pager->getFirstIndice()."</b> hasta <b>".$pager->getLastIndice()." )</b></font>"; ?>
                                        </div>
                                        <div class="clear"></div>
                                        </span>
                                    </div>
                                  </th>
                              </tr>
                          </tfoot>
                          <div class="clear"></div>
        <tbody>
        <?php  $i=0;?>
        <?php foreach ($pager->getResults() as $producto): ?>
          <?php  if($i==0) { $i++ ; ?>
                    <tr class="sf_admin_row odd">
         <?php }else { $i=0;?>
                <tr class="sf_admin_row even">
        <?php } ?>
                    <td class="sf_admin_text"><?php
                      foreach ($producto->getCategoria() as $categoria){
                          echo "- ".$categoria ."<br>";
                      }?></td>
                    <td class="sf_admin_text"><?php echo $producto->getNombre() ?></td>
                    <td class="sf_admin_text"><?php echo $producto->getMancheta() ?></td>
                    <td>
                      <ul class="sf_admin_td_actions">
                          <li class="sf_admin_action_edit">
                              <a href="<?php echo url_for('productoNew/edit?id='.$producto->getId()) ?>"  title="Editar">
                                  Editar
                              </a>
                          </li>
                          <li class="sf_admin_action_delete">
                              <?php echo link_to('&nbsp;', 'producto/delete?id='.$producto->getId(), array('method' => 'delete', 'confirm' => 'Esta Seguro?','class'=> 'buttonEliminar')) ?>
                          </li>

                      </ul>
                    </td>
                </tr>
        <?php endforeach; ?>
        </tbody>
            </table>
        </div>
        <ul class="sf_admin_actions">

            <button id="jwj_filters_button"> Filtrar
        </button>

        <li class="sf_admin_action_new">
            <a href="/backend.php/productoNew/new">Nuevo Servicio
                
            </a>
        </li>
        
        </ul>
    </div>
    <div id="sf_admin_footer"></div>
</div>
    <div class="clear"></div>
</div>
</td>
    <td id="jwj_content-de"></td>
</tr>
</tbody></table>
<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>

<div class="sf_admin_filter" title="Menu de Filtros" style="width: 280px;">
    
<form action="<?php echo url_for('productoNew/indexServicio'); ?>" method="post">
    <?php echo $filtro->renderHiddenFields(false) ?>
    <?php echo $filtro->renderGlobalErrors() ?>
    
   
<div class="menu-int">
    <table width="100%" border="0">
          <tr>
              
            <td valign="top">
    
        <table width="280px" style="padding: 20px;" border="0" CELLPADDING="2">

          <tr>
            <td valign="top"><?php echo $filtro['nombre']->renderLabel() ?>:
                <div class="formClear"></div>
                </td><td>
                <?php echo $filtro['nombre'] ?>
            </td>
                 <td valign="top">
                <?php echo $filtro['nombre']->renderError() ?></td>
             <td valign="top">
          </tr> 
          <tr>
                 <td>
                <?php echo $filtro['negocio_list']->renderLabel() ?>:
                <div class="formClear"></div>
                </td><td>
                <?php  echo $filtro['negocio_list'] ?>
                <?php echo $filtro['negocio_list']->renderError() ?>
                    
                </td>
          </tr> 
          <tr>
                
                
                
                <td valign="top">
                 
                <?php echo $filtro['categoria_list']->renderLabel() ?>:
                <div class="formClear"></div>
                </td><td>
                <?php echo $filtro['categoria_list'] ?>
                <?php echo $filtro['categoria_list']->renderError() ?>
                    
                </td>
                                 
          </tr>
          <tr>    
          <td align="top" colspan="2">
            
    <input id="filtrarBoton" name="filtrar" type="submit" value="Filtrar" />
    <a id="reset" href="<?php echo url_for('productoNew/resetServicio'); ?>">Reset</a>
            
     </td>
                
          </tr>
        </table>
    <div class="clear"></div>
    
    </td>
        </tr>
    </table>
</div> 
        
    
    
    <div class="clear"></div>
</form>
    <div class="clear"></div>
</div>

<div class="clear"></div>





